package edu.gatech.oad;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class AdminManagement extends Activity {

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.admin_managment);

		final Button mangU = (Button) findViewById(R.id.manage_current_user);
		final Button addNew = (Button) findViewById(R.id.create_new_users);

		final Button switchView = (Button) findViewById(R.id.normal_view_button);
		mangU.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent a = new Intent(AdminManagement.this, ManageOldUser.class);
				startActivity(a);
			}
		});

		addNew.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent b = new Intent(AdminManagement.this, CreateNewUser.class);
				startActivity(b);
			}
		});

		switchView.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent newView = new Intent(AdminManagement.this, MainActivity.class);
				startActivity(newView);
			}
		});

	}
}
